var criteriaNames = ["Bloomberg Security ID", "Valor", "WKN"]
var collections = ["FilterCriteria", "TemplateCriteria", "CriteriaLevel3"]

criteriaNames.forEach(function(name){
    collections.forEach(function(collection){
        print("Removing '" + name + "' from collection '" + collection + "'.")
        db.getSiblingDB("ClientPlatform").getCollection(collection).remove({Name: name})
        print("Finished removing '" + name + "' from collection '" + collection + "'.")
    })
})